using UnityEngine;

public class FPSCameraMoveDisabler : StateMachineBehaviour
{
	public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
	{
		if (animator.GetBool("FPSEdit"))
		{
			FPSCamera.instance.isMoveEnabled = false;
		}
	}

	public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
	{
		if (animator.GetBool("FPSEdit"))
		{
			FPSCamera.instance.isMoveEnabled = true;
		}
	}
}
